/*****************************************************************************/
/**
*
* @file interrupt.h
*
* @brief	Header file for interrupt.c.
*					Configurations about NVIC and EXTI.
* Target device: STM32F103RET6.
* <pre>
* MODIFICATION HISTORY:
*
* Ver   Who    Date   	Changes
* ----- ---- ---------- -------------------------------------------------------
* 0.01  abu  02/01/2020 Created
* </pre>
*
*------------------------------------------------------------------------------
* Author:	abu
*					E-mail:	abu_liu@opencores.org
*------------------------------------------------------------------------------
*
******************************************************************************/
#ifndef INTERRUPT_H		/* prevent circular inclusions */
#define INTERRUPT_H		/* by using protection macros */

#ifdef __cplusplus
	extern "C" {
#endif

/***************************** Include Files *********************************/
#include "stm32f10x.h"
#include "bsp_misc.h"

/************************** Constant Definitions *****************************/

//connect correspond IRQ handler to EXTIxx_IRQHandler
//#define	EXTI0_IRQHandler
//#define	EXTI1_IRQHandler
#define KEY4_IRQHandler	EXTI2_IRQHandler
//#define	EXTI3_IRQHandler
//#define	EXTI4_IRQHandler
//#define	EXTI5_IRQHandler
//#define	EXTI6_IRQHandler
//#define	EXTI7_IRQHandler
//#define	EXTI8_IRQHandler
//#define	EXTI9_IRQHandler
//#define	EXTI10_IRQHandler
//#define KEY2_IRQHandler	EXTI15_10_IRQHandler
//#define KEY3_IRQHandler	EXTI15_10_IRQHandler
//#define KEY5_IRQHandler	EXTI15_10_IRQHandler
//#define KEY2_3_5_IRQHandler	EXTI15_10_IRQHandler
//#define	EXTI14_IRQHandler
//#define	EXTI15_IRQHandler
//#define	EXTI16_IRQHandler
//#define	EXTI17_IRQHandler
//#define	EXTI18_IRQHandler
//#define	EXTI19_IRQHandler

/************************** Function Declarations ******************************/
void NVIC_Configuration(void);
void EXTI_Configuration(void);
		
#ifdef __cplusplus
}
#endif

#endif
